package org.linuxsogood.boot.ch2.strategy.impl;

import org.linuxsogood.boot.ch2.strategy.ApplePredicate;
import org.linuxsogood.boot.ch2.vo.Apple;

/**
 * @author honway.liu
 * @date 2017/7/4 下午11:01
 * @email gm100861@gmail.com
 * @blog http://linuxsogood.org
 */
public class AppleWeightPredicate implements ApplePredicate {
    @Override
    public boolean test(Apple apple) {
        return apple.getWeight() > 150;
    }
}
